@extends('common.layouts')

@section('content')

@include('common.validate')

<!-- 自定义内容区域 -->
<div class="panel panel-default">
    <div class="panel-heading">新增会员</div>
    <div class="panel-body">
        <form class="form-horizontal" method="post">
            {{ csrf_field() }}
            <div class="form-group">
                <label for="name" class="col-sm-2 control-label">帐号</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="name" name="Member[account]" value="{{ old('Member')['account'] }}" placeholder="请输入帐号">
                </div>
                <div class="col-sm-5">
                    <p class="form-control-static text-danger">{{$errors->first('Member.account')}}</p>
                </div>
            </div>
            <div class="form-group">
                <label for="age" class="col-sm-2 control-label">密码</label>

                <div class="col-sm-5">
                    <input type="password" class="form-control" name="Member[password]"  value="{{ old('Member')['password'] }}" placeholder="请输入密码">
                </div>
                <div class="col-sm-5">
                    <p class="form-control-static text-danger">{{$errors->first('Member.password')}}</p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">性别</label>

                <div class="col-sm-5">
                    <label class="radio-inline">
                        <input type="radio"  name="Member[sex]"  value="0"> 未知
                    </label>
                    <label class="radio-inline">
                        <input type="radio"  name="Member[sex]" value="1"> 男
                    </label>
                    <label class="radio-inline">
                        <input type="radio"   name="Member[sex]" value="2"> 女
                    </label>
                </div>
                <div class="col-sm-5">
                    <p class="form-control-static text-danger">{{$errors->first('Member.sex')}}</p>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
@stop